<?php
session_start();
if($_SESSION['uid']){
	session_destroy();
	header('location: '. $_SERVER['HTTP_REFERER']);
}else{ header('location: '. $_SERVER['HTTP_REFERER']); }
?>